from flask import Blueprint,jsonify
from utils import net_status
api = Blueprint('net_monitor',__name__)


@api.route('/api/net_status/ave_bandwidth_efficiency',methods=['GET'])
def get_ave_bandwidth_efficiency():
    return jsonify(net_status.get_ave_bandwidth_efficiency())


@api.route('/api/net_status/ave_loss',methods=['GET'])
def get_ave_loss():
    return jsonify(net_status.get_ave_loss())


@api.route('/api/net_status/slices_weights', methods=['GET'])
def get_slices_weights():
    return jsonify(net_status.get_slices_weights())